package com.heima.wemedia.controller.v2;

import com.heima.model.admin.dto.NewsAuthDto;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.wemedia.service.WmNewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/api/v1/news")
@RestController
public class ManualCheckController {

    @Autowired
    WmNewsService wmNewsService;

    @PostMapping("/list_vo")
    public PageResponseResult getNewsListByUncheck(@RequestBody NewsAuthDto dto){
        return wmNewsService.getNewsPageByUncheck(dto);
    }

    @PostMapping("/auth_fail")
    public ResponseResult authPass(@RequestBody NewsAuthDto dto ){
        return wmNewsService.authPass(dto);
    }
    
}
